package com.overlook.somniferous.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户组权限关联表
 */
@ApiModel(description="用户组权限关联表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "group_power")
public class GroupPower implements Serializable {
    @TableField(value = "id")
    @ApiModelProperty(value="")
    @Size(max = 100,message = "最大长度要小于 100")
    private String id;

    /**
     * 权限id
     */
    @TableField(value = "powerId")
    @ApiModelProperty(value="权限id")
    @Size(max = 100,message = "权限id最大长度要小于 100")
    private String powerid;

    /**
     * 用户组id
     */
    @TableField(value = "groupId")
    @ApiModelProperty(value="用户组id")
    @Size(max = 100,message = "用户组id最大长度要小于 100")
    private String groupid;

    private static final long serialVersionUID = 1L;
}